import axios from 'axios';

export interface UploadResponse {
  url: string;
  name: string;
  path: string;
}

export function uploadFile(formData: FormData) {
  return axios.post<UploadResponse>('/admin/upload/do', formData, {
    headers: {
      'Content-Type': 'multipart/form-data',
    },
  });
} 